import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/airList/${url}`, ...arg)

/**
 * 管理端空投白名单活动Api接口管理器
 *
 * @author zhangkaige
 * @date  2024/01/26
 **/
export default {
	// 执行活动快照
	exeAirSna(airId) {
		return request(`${airId}/snapshot.do`, null, 'get')
	},
	// 分页查询空投信息
	getAirList(pageNo, pageSize, data) {
		return request(`${pageNo}/${pageSize}/pageAirList.do`, data, 'post')
	},
	// 添加空投活动白名单
	addAirList(data) {
		return request('addAirList.do', data, 'post')
	},
	// 删除空投活动白名单
	deleteAirList(airId) {
		return request(`${airId}/deleteAirList.do`, null, 'get')
	}
}
